﻿using UnityEngine;
using System.Collections;

namespace Room
{
    public class RCAIUnionActorRevive : RCAIUnionActorBase
    {
        float stateTime = 2f;
        protected override void OnEnter()
        {
            controller.Spawn(RoomUnionFight.REBORN, 2);
           
            controller.owner.SetInView(true);
            EasyTouchTool.Instance.ShowJoystick();
            stateTime = 2f;
        }

        protected override void OnTick()
        {
            stateTime -= Time.deltaTime;
            if(stateTime <= 0f)
            {
                controller.SwitchState((int)UnionActorState.Stand);
            }
        }

        protected override void OnLeave()
        {

        }
    }
}